package com.yicong.ants.bean.order;

import com.google.gson.annotations.SerializedName;
import com.yicong.ants.bean.scenic.ScenicItem;



/**
 * wx 支付响应
 */

public class WxPay extends ScenicItem {

    /**
     * appid : wxb7aa912b2ee0cf03
     * partnerid : 1602858272
     * prepayid : wx14164536468380cdc51746c9ac63520000
     * timestamp : 1607935536
     * noncestr : a9pmJOr82rhrL0EC
     * package : Sign=WXPay
     * sign : 05C06EE1149384DBBB67CE4E23909957
     */

    private String appid;
    private String partnerid;
    private String prepayid;
    private String timestamp;
    private String noncestr;
    @SerializedName("package")
    private String packageX;
    private String sign;

    public WxPay() {
    }

    public String getAppid() {
        return this.appid;
    }

    public String getPartnerid() {
        return this.partnerid;
    }

    public String getPrepayid() {
        return this.prepayid;
    }

    public String getTimestamp() {
        return this.timestamp;
    }

    public String getNoncestr() {
        return this.noncestr;
    }

    public String getPackageX() {
        return this.packageX;
    }

    public String getSign() {
        return this.sign;
    }

    public WxPay setAppid(String appid) {
        this.appid = appid;
        return this;
    }

    public WxPay setPartnerid(String partnerid) {
        this.partnerid = partnerid;
        return this;
    }

    public WxPay setPrepayid(String prepayid) {
        this.prepayid = prepayid;
        return this;
    }

    public WxPay setTimestamp(String timestamp) {
        this.timestamp = timestamp;
        return this;
    }

    public WxPay setNoncestr(String noncestr) {
        this.noncestr = noncestr;
        return this;
    }

    public WxPay setPackageX(String packageX) {
        this.packageX = packageX;
        return this;
    }

    public WxPay setSign(String sign) {
        this.sign = sign;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof WxPay)) return false;
        final WxPay other = (WxPay) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$appid = this.getAppid();
        final Object other$appid = other.getAppid();
        if (this$appid == null ? other$appid != null : !this$appid.equals(other$appid))
            return false;
        final Object this$partnerid = this.getPartnerid();
        final Object other$partnerid = other.getPartnerid();
        if (this$partnerid == null ? other$partnerid != null : !this$partnerid.equals(other$partnerid))
            return false;
        final Object this$prepayid = this.getPrepayid();
        final Object other$prepayid = other.getPrepayid();
        if (this$prepayid == null ? other$prepayid != null : !this$prepayid.equals(other$prepayid))
            return false;
        final Object this$timestamp = this.getTimestamp();
        final Object other$timestamp = other.getTimestamp();
        if (this$timestamp == null ? other$timestamp != null : !this$timestamp.equals(other$timestamp))
            return false;
        final Object this$noncestr = this.getNoncestr();
        final Object other$noncestr = other.getNoncestr();
        if (this$noncestr == null ? other$noncestr != null : !this$noncestr.equals(other$noncestr))
            return false;
        final Object this$packageX = this.getPackageX();
        final Object other$packageX = other.getPackageX();
        if (this$packageX == null ? other$packageX != null : !this$packageX.equals(other$packageX))
            return false;
        final Object this$sign = this.getSign();
        final Object other$sign = other.getSign();
        if (this$sign == null ? other$sign != null : !this$sign.equals(other$sign)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof WxPay;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $appid = this.getAppid();
        result = result * PRIME + ($appid == null ? 43 : $appid.hashCode());
        final Object $partnerid = this.getPartnerid();
        result = result * PRIME + ($partnerid == null ? 43 : $partnerid.hashCode());
        final Object $prepayid = this.getPrepayid();
        result = result * PRIME + ($prepayid == null ? 43 : $prepayid.hashCode());
        final Object $timestamp = this.getTimestamp();
        result = result * PRIME + ($timestamp == null ? 43 : $timestamp.hashCode());
        final Object $noncestr = this.getNoncestr();
        result = result * PRIME + ($noncestr == null ? 43 : $noncestr.hashCode());
        final Object $packageX = this.getPackageX();
        result = result * PRIME + ($packageX == null ? 43 : $packageX.hashCode());
        final Object $sign = this.getSign();
        result = result * PRIME + ($sign == null ? 43 : $sign.hashCode());
        return result;
    }

    public String toString() {
        return "WxPay(appid=" + this.getAppid() + ", partnerid=" + this.getPartnerid() + ", prepayid=" + this.getPrepayid() + ", timestamp=" + this.getTimestamp() + ", noncestr=" + this.getNoncestr() + ", packageX=" + this.getPackageX() + ", sign=" + this.getSign() + ")";
    }
}
